package au.com.iglootech.winerymap.service;

import au.com.iglootech.winerymap.entity.WMUser;

import com.google.appengine.api.datastore.Key;

/**
 * 
 * @author Nicholas Zhu
 * 
 */
public interface WMUserService {

	/**
	 * 
	 * @param user
	 *            user
	 * @return user
	 */
	WMUser createUser(WMUser user);

	/**
	 * 
	 * @param username
	 *            username
	 * @param password
	 *            password
	 * @return user
	 */
	WMUser findUser(String username, String password);

	/**
	 * 
	 * @param key
	 *            key
	 * @return key
	 */
	WMUser findByKey(Key key);

}
